//
//  Service.swift
//  EasyTranslate
//
//  Created by 周波 on 2024/6/12.
//

import SwiftUI

struct Service: View {
    @Environment(\.presentationMode) var presentationMode

    var body: some View {
        ZStack {
            MainView()
            VStack {
                Ba(title: "Terms Of Service") {
                                   self.presentationMode.wrappedValue.dismiss()
                               }
                               GeometryReader { geometry in
                                              WebView(url: URL(string: "https://qucikboosterproxy.site/service.html")!)
                                                  .frame(height: geometry.size.height )
                                          }
                           }
                            .navigationViewStyle(StackNavigationViewStyle())
                           .navigationBarHidden(true)
                       .navigationBarBackButtonHidden(true)
        }
    }
}

#Preview {
    Service()
}
